-- GENERATED SPELL FOR [Rune Etched Sentry] --


function spell0_34196(pUnit, Event) --@Flaming Rune,n/a--
pUnit:FullCastSpellOnTarget(64852,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34196', 0, 1)
end

function spell1_34196(pUnit, Event) --@Lava Burst,n/a--
pUnit:FullCastSpellOnTarget(64870,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34196', 0, 1)
end

function spell2_34196(pUnit, Event) --@Lava Burst,n/a--
pUnit:FullCastSpellOnTarget(64991,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34196', 0, 1)
end

function spell3_34196(pUnit, Event) --@Runed Flame Jets,n/a--
pUnit:FullCastSpellOnTarget(64847,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34196', 5000, 1)
end

function spell4_34196(pUnit, Event) --@Runed Flame Jets,n/a--
pUnit:FullCastSpellOnTarget(64988,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34196', 5000, 1)
end

function Sorts_34196(pUnit, Event)
local choix_sorts_34196 = math.random(0, 4)
if choix_sorts_34196 == 0 then
pUnit:RegisterEvent('spell0_34196', 1, 1)
end
if choix_sorts_34196 == 1 then
pUnit:RegisterEvent('spell1_34196', 1, 1)
end
if choix_sorts_34196 == 2 then
pUnit:RegisterEvent('spell2_34196', 1, 1)
end
if choix_sorts_34196 == 3 then
pUnit:RegisterEvent('spell3_34196', 1, 1)
end
if choix_sorts_34196 == 4 then
pUnit:RegisterEvent('spell4_34196', 1, 1)
end
end

function mob34196_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34196', math.random(1500, 3000), 1)
end

function mob34196_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34196_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34196_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34196, 1, 'mob34196_Action')
RegisterUnitEvent(34196, 2, 'mob34196_Leave')
RegisterUnitEvent(34196, 3, 'mob34196_Kill')
RegisterUnitEvent(34196, 4, 'mob34196_Die')
